using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "ValueSetting", menuName = "Super/Create ValueSetting")]
public class ValueSettingSO : ScriptableObject
{
    private static ValueSettingSO ins;
    public static ValueSettingSO Ins
    {
        get
        {
            if (ins == null)
            {
                ins = Resources.Load<ValueSettingSO>("ValueSetting");
            }
            return ins;
        }
    }


    [Header("选项相关")]
    public bool BlackTransparency = false;  //PC黑色背景透明化
    public bool Borderless = false; //PC无边框
    public bool CustomLangAddReload = true;  //编辑器模式下：自动添加多语言时先进行重新读取，可以防止添加重复key，会增加性能消耗


    [Header("Excle相关")]
    public int ExcelIgnoreRow = 3;
    public int ExcelIgnoreCol = 1;

    [Header("UI相关")]
    public float planeDistance = 10f;
    public Vector3 virtualCameraPos = new Vector3(0, 0, -10);
    public float bestScreenWidth = 1920f;
    public float bestScreenHeight = 1080f;

    [Header("按键相关")]
    public float btnPressedThreshold = 0.5f;
    public float btnTapThreshold = 0.2f;
    public float btnJumpHoldTimeMax = 0.25f;

    [Header("Addressable Group")]
    public string spritAGroup = "Sprite";
    public string prefabAGroup = "Prefab";
    public string excelCfgAGroup = "ExcelCfg";
    public string frameworkAGroup = "FW";
    public string textAGroup = "Text";
    public string langLabel = "LangKeys";

    [Header("Other")]
    public float typeWriterInterval = 0.03f;
    public string defaultLangName = "Default";
    public List<string> htmlColorList = new List<string>()
    {
        "#EF5350",	//红色
		"#EC407A",	//粉色
		"#AB47BC",	//紫色
		"#7E57C2",	//深紫
		"#26C6DA",	//青色
		"#26A69A",	//蓝绿色
		"#66BB6A",	//绿色
		"#9CCC65",	//淡绿色
		"#D4E157",	//酸橙色
		"#FFEE58",	//黄色
		"#FFCA28",	//琥珀色
		"#FFA726",	//橙色
		"#FF7043",	//深橙色
		"#8D6E63",	//棕褐色
		"#BDBDBD",	//灰色
		"#78909C",	//蓝灰色
		"#42A5F5",	//蓝色
		"#29B6F6",	//淡蓝
		"#5C6BC0",	//靛蓝
	};

    [Header("RAS秘钥")]
    public string PublicKey_RSAXml = @"<RSAKeyValue><Modulus>imlNivP2+hjnCYxnKV5cL+nUdE1WWWetHLJ2Z4yKjhtutbCrkPdg7Z1mhAMrm9wsyVTZCxyEUY7eYYty1KByaRDWtjGpfQAuv3cUruQRo0C9OFs2uAqb/w+hqGNpexo1CTqkUA/y8Y3vXn4R+T9Q6hVC9eRvUZW28MGCgYaF9uE=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>";
    public string PrivateKey_RSAXml = @"<RSAKeyValue><Modulus>imlNivP2+hjnCYxnKV5cL+nUdE1WWWetHLJ2Z4yKjhtutbCrkPdg7Z1mhAMrm9wsyVTZCxyEUY7eYYty1KByaRDWtjGpfQAuv3cUruQRo0C9OFs2uAqb/w+hqGNpexo1CTqkUA/y8Y3vXn4R+T9Q6hVC9eRvUZW28MGCgYaF9uE=</Modulus><Exponent>AQAB</Exponent><P>oxKbtCJcZ6Bde1TethtxnfBMlENp2i5E9kkwdr9ong8adfdB6+i63lpK0Z0druOJkSTIq/At4pl9Uj9JAhg9DQ==</P><Q>2UkLYv9Zb1Eaq/WHcokRDVpfL1bwfDcpMD9wZAUBFcmqqmE5LnY3WxvXE9vva/TlChEtZM73Mh1NLYuU0Hi0JQ==</Q><DP>UZ/q2Auq/SPEJwugPr8V69xwOHZV8aPfWPfhjk7Y6uTcddfB43emsc24TZu7U+MI5OHooEekcBwsIpMS1D2VsQ==</DP><DQ>u5a4YeuaRuR6ZmM/YL69Hg4bhz9Dt7nXsXPTkEZRvYGx+g6d02L0P5A1i0uh1E5FPv+9dP7Jo1ZwvxV2kNTkkQ==</DQ><InverseQ>SWOJnT/XT2HChNrXbdiXLs6EKC04pR/1eWxEorwgr++zdAp+NtHJdD0tQGWb0bYvsehNfehYNhyaVltb6GbcCw==</InverseQ><D>MLIFjvpwDONP/WMBNGO3SUAZ9+TxmTjJhcwfriSa5o4uMAv9AF6YImD7HTzETexzcU3BopAg2VTLVkQqXTYpqdlqRhEObfpLTdh7kYUnSoxppZ79a1Yo0GjB3o2rjWiW03rw7PaNYApHMRN60bGvFboF8sd2NuIXvF3ojtaUQLE=</D></RSAKeyValue>";

    public string reloadMethodStr = "";
}
